package com.guobox.movies.view.timer;

import com.guobox.movies.utils.ResetTimer;

public class NumTipTimer extends ResetTimer {
    private TimerCallback numTipTimerCallback;

//    public static NumTipTimer instance = null;
//
//    public static NumTipTimer getInstance(TimerCallback timerCallback) {
//        if (instance == null) {
//            instance = new NumTipTimer(2000, timerCallback);
//        }
//        return instance;
//    }

    public NumTipTimer(long delayTime,TimerCallback numTipTimerCallback) {
        super(delayTime);
        this.numTipTimerCallback = numTipTimerCallback;
    }

    @Override
    public void onTimerDown() {
        numTipTimerCallback.numTipCallback();
    }

}